Repository navigation
fix(cli): add help text to four options that printed none - #2083
Open
akx-vishnu wants to merge 1 commit into
Open
akx-vishnu wants to merge 1 commit into
akx-vishnu wants to merge 1 commit into
Conversation
loom reconcile --restored, loom reembed --batch-size, loom settings history --limit and loom code lint-instructions --json showed no description in --help. Add a one-line help string to each, in the style of the options beside them, with the defaults of --batch-size and --limit. The CLI snapshots are regenerated under Python 3.12; only help lines change. Closes ClickHouse#2072 Signed-off-by: akx-vishnu <akx-vishnu@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
zlareb1
approved these changes
Dec 3, 2026
zlareb1
left a comment
Member
There was a problem hiding this comment.
The four descriptions match their command defaults and behavior, including the refusal when both stores were restored. The CLI snapshots and restore tests pass (65 tests).
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #2072
Related: #1942
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
loom reconcile --restored,loom reembed --batch-size,loom settings history --limitandloom code lint-instructions --jsonnow describe themselves in--help, with the defaults of--batch-size(200) and--limit(50).Why
These four options printed no description in
--help, while the options beside them all have one, so an operator had to read the source to learn what they do.Scope and risk
Only the
help=strings change, inserver/cli/restore.py,maintenance.py,settings_cmd.pyandcode.py. No option name, default, choice or behaviour changes. The help strings follow the casing of their neighbours (lower case inrestore.pyandcode.py, capitalised inmaintenance.pyandsettings_cmd.py). The--restoredtext says whybothis refused, as_refusaldoes.Compatibility, rollout and rollback
Tests
LOOM_UPDATE_CLI_SNAPSHOT=1 python -m pytest tests/unit/test_cli_surface_snapshot.py). Only the four help lines changed incli_tree.jsonandcli_help.json; I checked every line of the diff.python -m pytest tests/unit/test_cli_surface_snapshot.py: 2 passed.ruff checkandruff format --checkon the changed files: pass, lines within 100 columns.python scripts/codegen/docs_reference.py --check: all references current.AI assistance in the code (leave one; writing this description with AI is fine):
_refusalfor--restored,reembed_all'sbatchfor--batch-size), the snapshot diff line by line, and ran the checks above.Note
Low Risk
Documentation-only argparse help strings and test snapshots; no command behavior or wire format changes.
Overview
Adds missing argparse
help=descriptions so four Loom CLI flags show up in--helplike their neighbors, with no changes to option names, defaults, choices, or runtime behavior.loom code lint-instructions --jsonnow says it prints the report as JSON instead of text.loom reembed --batch-sizedocuments that it controls rows read per page (default 200).loom settings history --limitexplains the newest-first cap (default 50).loom reconcile --restoreddescribes which store was restored from backup and notes thatbothis refused because neither store holds the cross-store records.Unit CLI surface snapshots (
cli_help.json,cli_tree.json) were regenerated to match the updated help output.Reviewed by Cursor Bugbot for commit 0cf1a22. Bugbot is set up for automated code reviews on this repo. Configure here.